﻿using Senparc.Weixin;

namespace Link_eLab.WeChatTools
{
    /// <summary>
    /// 固定值
    /// </summary>
    public static class WeChatConsts
    {
        /// <summary>
        /// 与微信公众账号后台的AppId设置保持一致，区分大小写。
        /// </summary>
        public static string appId = Config.SenparcWeixinSetting.WeixinAppId;

        /// <summary>
        /// 微信公众账号后台的AppId对应的secret安全令牌，区分大小写。
        /// </summary>
        public static string secret = Config.SenparcWeixinSetting.WeixinAppSecret;

        /// <summary>
        /// 微信请求成功时返回消息toString
        /// </summary>
        public const string weChatRequestSuccessCode = "请求成功";

        /// <summary>
        /// 后台网址
        /// </summary>
        public const string eLabDomain = "http://www.efficientlab.cn";

        /// <summary>
        /// 推送模板ID
        /// </summary>
        public static class TemplateId
        {
            /// <summary>
            /// 产品到期
            /// </summary>
            public const string proExprirationTemplateId = "r1JOdnbNJa58m977GYbpjFMf2WSTD5qvQWsv4zKANvk";

            /// <summary>
            /// 逾期未归还
            /// </summary>
            public const string productNotReturnTemplateId = "7Y03wrjm2IY517yiVY5AXeqlUii6WtvNeIkm3hxCgik";

            /// <summary>
            /// 试剂柜预警（状态异常提醒）
            /// </summary>
            public const string cabinetErrorTemplateId = "EdM2MYY-XFCqGelpl-He4eWjjodav6TZOOGKsbh8amI";

            /// <summary>
            /// 最低库存
            /// </summary>
            public const string inventoryLowTemplateId = "hItTb0faPQKuP6IEbwhClc1GvMz-L3Vdp-IPefOFawA";
        }
    }
}
